package com.monitor.core.bean;

/**
 * @Auther: hanhui.liu
 * @Date: 2018/4/24 14:38
 * @Description: 消息中间件枚举
 */
public enum MessageHanlderType {

    RabbitMQ(1),

    ActiveMQ(2),

    Kafka(3),

    NULL(0),

   ;

    private final int value;

    MessageHanlderType(int value) {
        this.value = value;
    }

    public MessageHanlderType getMessageHandlerType(int value) {
        for (MessageHanlderType messageHandlerType :
                MessageHanlderType.values()) {
            if (value == messageHandlerType.value) {
                return messageHandlerType;
            }
        }
        return null;
    }
}
